package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SBattlefieldOpen extends Object implements IMessageBase
    {
        public var openDt:Date;
        public var endDt:Date;
        public const _type:int = 97;
        public static var _regist:SBattlefieldOpen = new SBattlefieldOpen(true);

        public function SBattlefieldOpen(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SBattlefieldOpen();
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeDate(this.openDt);
            param1.writeDate(this.endDt);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.openDt = param1.readDate();
            this.endDt = param1.readDate();
            
        }

    }
}
